package top.codedance.iotp.common.entity;

public class CliCmdEntity {
    private boolean required;
    private String shortOpt;
    private String longOpt;
    private boolean hasArg;
    private String description;
    private Class<?> type;
    private boolean isJoin = true;

    public CliCmdEntity(boolean required, String shortOpt, String longOpt, boolean hasArg, String description, Class<?> type) {
        this.required = required;
        this.shortOpt = shortOpt;
        this.longOpt = longOpt;
        this.hasArg = hasArg;
        this.description = description;
        this.type = type;
    }

    public CliCmdEntity(boolean required, String shortOpt, String longOpt, boolean hasArg, String description, Class<?> type, boolean isJoin) {
        this(required, shortOpt, longOpt, hasArg, description, type);
        this.isJoin = isJoin;
    }

    public boolean isRequired() {
        return required;
    }

    public void setRequired(boolean required) {
        this.required = required;
    }

    public String getShortOpt() {
        return shortOpt;
    }

    public void setShortOpt(String shortOpt) {
        this.shortOpt = shortOpt;
    }

    public String getLongOpt() {
        return longOpt;
    }

    public void setLongOpt(String longOpt) {
        this.longOpt = longOpt;
    }

    public boolean isHasArg() {
        return hasArg;
    }

    public void setHasArg(boolean hasArg) {
        this.hasArg = hasArg;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Class<?> getType() {
        return type;
    }

    public void setType(Class<?> type) {
        this.type = type;
    }

    public boolean isJoin() {
        return isJoin;
    }

    public void setJoin(boolean join) {
        isJoin = join;
    }
}
